package com.base.service

import io.swagger.annotations.Api
import io.swagger.annotations.ApiImplicitParam
import io.swagger.annotations.ApiImplicitParams
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam

@Api("adminApi")
@RequestMapping("/adminApi")
interface IRPC_AdminAPI {
    @ApiOperation("index")
    @ApiImplicitParams()
    @RequestMapping("/index", method = [RequestMethod.GET])
    fun index(): String

    @ApiOperation("sbin/interface")
    @ApiImplicitParams(
        ApiImplicitParam(name = "jkid", value = "接口ID", required = true, dataType = "String"),
        ApiImplicitParam(name = "jkparam", value = "接口参数", required = false, dataType = "String")
    )
    @RequestMapping("/sbin", method = [RequestMethod.POST])
    fun `interface`(@RequestParam jkid: String, @RequestParam jkparam: Any?): String
}
